package com.headline.service;

import com.headline.pojo.Headline;
import com.baomidou.mybatisplus.extension.service.IService;
import com.headline.pojo.VO.portalSelectVO;
import com.headline.utils.Result;

/**
* @author 断念残情
* @description 针对表【news_headline】的数据库操作Service
* @createDate 2024-04-11 17:20:21
*/
public interface HeadlineService extends IService<Headline> {

    /**
     * 首页数据查询
     * @param portalSelectVO
     * @return
     */
    Result findNewsPage(portalSelectVO portalSelectVO);

    Result showHeadlineDetail(Integer hid);

    /**
     * 发布头条
     * @param headline
     * @param token
     * @return
     */
    Result publish(Headline headline, String token);

    /**
     * 头条回显
     * @param hid
     * @return
     */
    Result findHeadlineByHid(Integer hid);

    /**
     * 修改头条内容
     * @param headline
     * @return
     */
    Result updateHeadline(Headline headline);

    Result removeByHid(Integer hid);
}
